package com.example.service;

import com.example.entity.*;

import java.util.Date;
import java.util.List;

public interface OrderService {
    void commit();
    void rollback();
    int deleteOrder(int o_id);
    void updateAddEconomySpace(int f_id);
    void updateAddFirstSpace(int f_id);
    void updateAddBusinessSpace(int f_id);
    void updatePassengerOrderNum(int passenger_id);
    //Order getOrderById(int o_id);
    Passenger getPassengerByPassengerId(int passenger_id);
    Flight getFlightByFlightId(int f_id);
    String getFlightModelByFlightId(int f_id);
    Plane getPlaneByPlaneModel(String p_model);
    Date getFlightDateByFlightId(int f_id);
    String getFlightStatusByFlightId(int f_id);

    String getPassengerIDcardByPid(int p_id);
    double getOrderMoneyByOid(int o_id);
    double getBankMoneyByUserIDcard(String u_ID_card);
    int updateOrderStatus(int o_id);
    int updatePassengerOrderNumByPid(int p_id);
    int updateBankMoneyByUserIDcard(String u_ID_card, double money);
    //订单详情
    Order getOrderByOrderId(int order_id);
    List<Ticket> getTicketByOrderId(int order_id);
    List<Passenger> getPassengerListByOrderId(int order_id);
    List<Plane> getPlaneListByFId(int f_id);
}
